Terraform: Up and Running: Writing Infrastructure as Code by Brikman Yevgeniy
Author:Brikman, Yevgeniy [Brikman, Yevgeniy]
Language: eng
Format: azw3
Publisher: O'Reilly Media
Published: 2017-03-13T04:00:00+00:00
def example_function(param1, param2) return "Hello, #{param1} #{param2}" end # Other places in your code return_value = example_function("foo", "bar")
In Terraform, a module can also return values. Again, this is done using a mechanism you already know: output variables. You can add the ASG name as an output variable in /modules/services/webserver-cluster/outputs.tf as follows:
output "asg_name" { value = "${aws_autoscaling_group.example.name}" }
You can access module output variables the same way as resource output attributes. The syntax is:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Grails in Action by Glen Smith Peter Ledbrook(9165)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(8808)
Azure Containers Explained by Wesley Haakman & Richard Hooper(7445)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(7437)
Kotlin in Action by Dmitry Jemerov(7264)
Running Windows Containers on AWS by Marcio Morales(6988)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(5402)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(5215)
Combating Crime on the Dark Web by Nearchos Nearchou(4982)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4671)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4527)
Python for Security and Networking - Third Edition by José Manuel Ortega(4234)
The Age of Surveillance Capitalism by Shoshana Zuboff(4210)
Learn Wireshark by Lisa Bock(4124)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3888)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3681)
DevSecOps in Practice with VMware Tanzu by Parth Pandit & Robert Hardt(3570)
Windows Ransomware Detection and Protection by Marius Sandbu(3543)
Blockchain Basics by Daniel Drescher(3507)